package com.netease.examination.model;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * designed by destiny
 *
 * 商品表实体
 *
 * @author destiny
 *         e-mail destinywk@163.com
 *         github https://github.com/DestinyWang
 *         oschina https://git.oschina.net/destinywk
 * @version JDK 1.8.0_101
 * @since 2017/3/16 16:59
 */
@Getter
@Setter
@ToString
public class Goods {

    private Long id;            // 商品主键
    private String title;       // 商品标题
    private String summary;     // 商品摘要
    private String imgUrl;      // 商品图片链接
    private String content;     // 商品内容
    private Double price;       // 商品价格
    private Integer tag;        // 商品是否已被购买的标志

    public Goods() {
    }

    public Goods(String title, String summary, String imgUrl, String content, Double price, Integer tag) {
        this.title = title;
        this.summary = summary;
        this.imgUrl = imgUrl;
        this.content = content;
        this.price = price;
        this.tag = tag;
    }
}
